<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderDatasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {   //生e经订单数据
        Schema::create('order_datas', function (Blueprint $table) {
            $table->increments('id');
            //订单号
            $table->string('order_num');
            //宝贝标题
            $table->string('commodity_title');
            //宝贝链接
            $table->string('commodity_url');
            //子订单金额
            $table->string('sub_order');
            //成交单价
            $table->string('trading_univalence');
            //宝贝数量
            $table->string('commodity_quantity');
            //子订单金额（折算:邮费、优惠等）
            $table->string('sub_order_money');
            //买家旺旺
            $table->string('buyer_wangwang');
            //付款时间
            $table->string('paid_at');
            //创建时间
            $table->string('created_at');
            // $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('order_datas');
    }
}
